package cn.wolfcode.mapper;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Notice;
import cn.wolfcode.qo.QueryObject;
import cn.wolfcode.util.UserContext;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Notice notice);

    Notice selectByPrimaryKey(Long id);

    List<Notice> selectAll();

    int updateByPrimaryKey(Notice record);

    List<Notice> selectForList(@Param("qo")QueryObject qo, @Param("employeeId") Long employeeId);

    void updateNoticeStatus(@Param("id") Long id, @Param("status") Boolean status);

    void updateMsgStatus(@Param("noticeId") Long noticeId, @Param("employeeId") Long employeeId);

    void insertEmpNoticeRelation(@Param("empIds") List<Employee> empIds, @Param("noticeId") Long noticeId);
}